import { defineConfig } from 'vite'

export default defineConfig({
  plugins: [
    {
      name: "html-transform",
      transformIndexHtml(html) {
        // 替换成fr得文件路径
        html = html.replace(
          /\$VERSION/g,
          `${Date.now()}`
        );
        return html;
      },
    }
  ],
  server: {
    port: 8080,
  },
  build: {
    outDir: "dist"
  }
})